range
test if a numeric value is inside the range min … max
Parameters
value
value to test
min
minimum allowed value
max
maximum allowed value
Throws
when value is outside min … max
test if a numeric value is inside the range min … max
Parameters
value
value to test
min
minimum allowed value
max
maximum allowed value
name
value name for better error message
Throws
when value is outside min … max
test if a string length is inside the range min … max
Parameters
value
value to test
min
minimum allowed value
max
maximum allowed value
Throws
when value is outside min … max
test if a string length is inside the range min … max
Parameters
value
value to test
min
minimum allowed value
max
maximum allowed value
name
value name for better error message
Throws
when value is outside min … max